package com.spring.factoryBean;

import java.util.HashMap;
import java.util.Map;

public class StaticFactoryBean {

	static Map<String, Object> map = new HashMap<String, Object>();
	static {
		map.put("wuzhong", new School("五中"));
		map.put("beizhong", new School("北中"));
	}

	public static Object getSchool(String name) {
		return map.get(name);
	}
}
